package com.rex.saas.bean;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultCode {
    PARAM_ERROR(1001,"参数错误"),
    UPDATE_ERROR(1002,"更新数据失败"),
    NOT_EXIST_ERROR(1003,"数据不存在"),
    LOGIN_ERROR(1004,"登录失败"),
    REFRESH_TOKEN_ERROR(1005,"refresh token 错误"),
    EXECUTE_ERROR(1006,"执行失败"),
    HTTP_ERROR(1007,"HTTP访问失败"),
    SYSTEM_ERROR(1009,"系统异常"),
    LOGOUT_ERROR(1010,"登出失败"),
    TOKEN_ERROR(1011,"token异常"),
    PERMISSION_ERROR(1012,"权限异常"),

    ;


    private int status;
    private String message;

    public void setStatus(int status) {
        this.status = status;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
